import request from '@/utils/request'

export function getListPage(query) {
  return request({
    url: '/sysm/cms/quota/',
    method: 'GET',
    params: query
  })
}

export function updateData(query) {
  return request({
    url: '/sysm/cms/quota/',
    method: 'POST',
    data: query
  })
}

export function deleteData(query) {
  return request({
    url: `/sysm/cms/quota/${query}`,
    method: 'DELETE'
  })
}

// 批量保存
export function updateDataList(query) {
  return request({
    url: '/sysm/cms/quota/saveList',
    method: 'POST',
    data: query
  })
}

export function getListAll(query) {
  return request({
    url: '/sysm/cms/quota/getDetailByDept',
    method: 'GET',
    params: query
  })
}

// 批量提交
export function commitList(query) {
  return request({
    url: '/sysm/cms/quota/commitList',
    method: 'POST',
    data: query
  })
}
